<?php
/**
  * Mar 4, 2008
  *
  * Coded by: Ropu
  *
  */
require_once('classes/dao/hackathonDAO.php');
class Hackathon {
  private $id = null;
  private $location;
  private $date;
  private $info;
  
  public function __construct($id=null) {
    if(!is_null($id)) {
      $this->id = $id;
      $this->id = HackathonDAO::get($this);
    }
  }
  
/*
 * Getters
 */
  public function getId() {
    return $this->id;
  }
  
  public function getLocation() {
    return $this->location;
  }
  
  public function getDate() {
    return $this->date;
  }
  
  public function getInfo() {
    return $this->info;
  }
  
/*
 * Setters
 */
  public function setLocation($location) {
    $this->location = $location;
  }
    
  public function setDate($date) {
    $this->date = $date;
  }

  public function setInfo($info) {
    $this->info = $info;
  }
}
?>